package com.example.ireader;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;


public class MineFragment extends Fragment {

    private static MineFragment instance;

    private Button Login_Button = null;

    // TODO: Rename and change types and number of parameters
    public static MineFragment getInstance() {
        if (instance==null)
            instance=new MineFragment();
        return instance;
    }


        ;
    public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view= inflater.inflate(R.layout.fragment_mine, container, false);

        Button button=(Button)view.findViewById(R.id.logininButton);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(getActivity(),entry_view.class);
                startActivity(intent);
            }
        });
        return view;
    }


}
